home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / init.d / dns-clean < prev    next >
Text File  |  2008-05-27  |  1KB  |  50 lines

  1. #! /bin/sh
  2.  
  3. # $Id: dns-clean,v 1.1.1.1 2004/05/07 03:12:59 john Exp $
  4.  
  5. # dns-clean by John Hasler 1999-2003
  6. # Any possessor of a copy of this program may treat it as if it
  7. # were in the public domain.  I waive all rights.
  8.  
  9. # This script should be run at bootup to clean up any mess left by 0dns-up.
  10. # It should be run before ppp is started.
  11. # It should never be run while ppp is up.
  12.  
  13. ### BEGIN INIT INFO
  14. # Provides:          dns-clean
  15. # Required-Start:    $local_fs
  16. # Required-Stop:     $local_fs
  17. # Default-Start:     S
  18. # Default-Stop:
  19. # Short-Description: Cleans up any mess left by 0dns-up
  20. # Description: 0dns-up often leaves behind some cruft. This Script is meant
  21. #              to clean up any such mess.
  22. ### END INIT INFO
  23.  
  24. PATH=/sbin:/bin:/usr/sbin:/usr/bin
  25.  
  26. test -f /usr/sbin/pppconfig || exit 0
  27. # We might have a tmpfs /var/run.
  28. mkdir /var/run/pppconfig >/dev/null 2>&1 || true
  29. test -f /etc/ppp/ip-down.d/0dns-down || exit 0
  30.  
  31. . /lib/lsb/init-functions
  32. . /etc/default/rcS
  33.  
  34. case "$1" in
  35.   start)
  36.     [ "$VERBOSE" != no ] && log_begin_msg "Restoring resolver state..."
  37.     /etc/ppp/ip-down.d/0dns-down "0dns-clean"
  38.     [ "$VERBOSE" != no ] && log_end_msg $?
  39.     ;;
  40.   stop|restart|force-reload)
  41.     ;;
  42.   *)
  43.         ;;
  44. esac
  45.  
  46. exit 0
  47.  
  48.  
  49.  
  50.